package com.lyl.cloud.service.impl;

import com.lyl.cloud.common.base.Result;
import com.lyl.cloud.service.HystrixPaymentService;
import org.springframework.stereotype.Component;

@Component
public class HystrixPaymentServiceImpl implements HystrixPaymentService {

    @Override
    public Result timeout(String id) {
        String str = "[消费侧服务降级] : timeout接口不可用";
        System.out.println(str);
        return Result.fail(str);
    }

    @Override
    public Result ok(String id) {
        String str = "[消费侧服务降级] : ok接口不可用";
        System.out.println(str);
        return Result.fail(str);
    }
}
